<?php

class User_Form_ForgotPass extends Front_Base_Form_Horizontal
{
	
	public function getFormId() {
		$className = get_class($this);
		return strtolower($className);
	}
	
    public function init()
    {
        $this->setIsArray(true);
        //$this->setElementsBelongTo('bootstrap');

        $this->_addClassNames('form-forgot-pass');

        // Email
        $this->addElement('text', 'email', array(
            'id' => 'dangky_email',
            'label' => $this->getView()->translate('EMAIL'),
            'maxlength' => 100,
            'class' => 'inputBox input1'
        ));
        $this->getElement('email')
        ->addFilter('StringTrim')
        ->addFilter('StripTags')
        ->setRequired(true)
        ->addValidators(array(
            array('NotEmpty', true),
            array('stringLength', false, array(3, 100)),
            array('EmailAddress')
        ));
    }

}